<%-- 
    Document   : Update
    Created on : Aug 9, 2012, 11:07:21 PM
    Author     : VUHOLMES
--%>

<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form name="frmEmployee" method="post">
            <table>
                <tr>
                    <td> <s:textfield label="Name" name="name" value="%{name}"/></td>
                </tr>
                <tr>
                    <td> 
                    <s:radio label="Sex" value="%{sex}" name="sex" list="{'Male','Female'}"></s:radio> 
                    </td>
                </tr>
                <tr>
                    <td> <s:textfield label="BirthDay" value="%{birthday}" name="birthday"/></td>
                </tr>
                <tr>
                    <td> 
                        <s:select label="City" name="city" value="%{city}" list="{'Ho Chi Minh','Ha Noi','Da Nang'}">
                        </s:select> 
                    </td>
                </tr>
                <tr>
                    <td> <s:textfield label="Email" name="email" value="%{email}"/></td>
                </tr>
                <tr>
                    <td> <s:textarea label="History" name="history" value="%{history}" cols="20" rows="3" />
                    </td>
                </tr>
                <tr>
                    <td>
                        
                    <s:submit id="btnAdd" name="btnAdd" 
                    value="Add" action="EmployeeAdd" theme="simple" 
                    align="right"/>
                    <s:submit id="btnSave" name="btnSave" 
                    value="Save" action="EmployeeUpdate" theme="simple" 
                    align="right">
                    </s:submit>
                    <s:submit id="btnGetList" 
                    name="btnGetList" value="Get Employee List" 
                    action="getEmployeeList"/>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
